#set($title = "智能会议预定系统-管理员-会议室-修改")<h2>$title</h2>
<form action="/meetings/modify/$!meeting.id" method="post">
    <input type="hidden" name="id" value="$!meeting.id"/><input type="hidden" name="floor" value="$!meeting.floor"/><input type="hidden" name="building" value="$!meeting.building"/><input type="hidden" name="meetingName" value="$!meeting.meetingName"/><input type="hidden" name="createTime" value='$date.format("yyyy-MM-dd HH:mm:ss",$!meeting.createTime)'/>
    <table class="table">
        <thead>
            <tr>
                <td>
                    名称
                </td>
                <td>
                    值
                </td>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>
                    会议室名称
                </td>
                <td>
                    $!meeting.meetingName
                </td>
            </tr>
            <tr>
                <td>
                    电视
                </td>
                <td>
                    #selectTag("hasTv",$options,$meeting.hasTv)
                </td>
            </tr>
            <tr>
                <td>
                    Lync
                </td>
                <td>
                    #selectTag("hasLync",$options,$meeting.hasLync)
                </td>
            </tr>
            <tr>
                <td>
                    IT设备
                </td>
                <td>
                    #selectTag("hasIt",$options,$meeting.hasIt)
                </td>
            </tr>
            <tr>
                <td>
                    vip
                </td>
                <td>
                    #selectTag("isVip",$options,$meeting.isVip)
                </td>
            </tr>
            <tr>
                <td>
                    启用
                </td>
                <td>
                    #selectTag("state",$options,$meeting.state)
                </td>
            </tr>
            <tr>
                <td>
                    电话
                </td>
                <td>
                    #selectTag("hasPhone",$options,$meeting.hasPhone)
                </td>
            </tr>
			 <tr>
                <td>
                    会议室权限
                </td>
                <td>
                     <div id="radioset">
                                <input type="radio" id="radio1" name="meetingRight" #if($!$meeting.meetingRight==1)checked="checked"#end
                                    value="1" /> <label for="radio1" title="普通权限">
                                   普通权限 </label> <input type="radio" id="radio2" name="meetingRight" #if($!$meeting.meetingRight==2)checked="checked"#end
                                    value="2" /> <label for="radio2" title="如1期4楼"> 特殊会议室
                                </label>
                                <input type="radio" id="radio3" name="meetingRight" #if($!$meeting.meetingRight==3)checked="checked"#end
                                    value="3" /> <label for="radio3" title="周期预约"> 周期预约
                                </label>
                                <input type="radio" id="radio4" name="meetingRight" #if($!$meeting.meetingRight==4)checked="checked"#end
                                    value="4" /> <label for="radio4" title="VIP"> VIP
                                </label>
                            </div>
                </td>
            </tr>
            <tr>
            <tr>
                <td>
                    最大容纳数
                </td>
                <td>
                    <input type="text" name="maxNums" value="$!meeting.maxNums"/>
                </td>
            </tr>
            <tr>
                <td>
                    会议室描述
                </td>
                <td>
                    <textarea name="remark" cols="3" rows="3">$!meeting.remark</textarea>
                </td>
            </tr>
        </tbody>
    </table>
    <div class="row">
        <div class="span3 ">
        <button type="submit" class="ui-button-primary" value="修改"/>修改
        </button>
    </div>
    <div class="span3">
    <button type="button" href="/meetings/delete/$meeting.id" class="ui-button-error" value="删除"/>删除
    </button>
</div>
<div class="span3">
    <button type="button" href="/meetings/list" class="ui-button-success" value="返回"/>返回
</div>
<div class="span3">
    <button type="button" href="/meetings/add" class="ui-button-success" value="返回">
        新增
    </button>
</div>
</div>
</form>
<script type="text/javascript">
    $(function(){
        $("button[href]").click(function(){
            window.location.href = $(this).attr("href");
        });
        $('.selectpicker').selectpicker();
		 $('#radioset').buttonset();
    });
</script>
